package com.zzj.controller;

import com.zzj.service.PowerService;
import com.zzj.utils.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("power")
public class PowerController {

    @Resource
    private PowerService powerService;
//gg
    @GetMapping("returnOnePowerListTree/{uid}")
    public Result<List> returnOnePowerListTree(@PathVariable("uid") Integer uid){
        return powerService.returnOnePowerListTree(uid);
    }
}
